package behavior.Vistor;

/**
 * Created by LYJ on 2016/10/21.
 * 具体访问者角色
 */
public class Visitor implements IVistor {
    @Override
    public void visit(ConcreteElement1 e1) {
        e1.doSomething();
    }

    @Override
    public void visit(ConcreteElement2 e2) {
        e2.doSomething();
    }
}
